﻿CREATE TABLE [dbo].[tblJournal]
(
	JournalID int NOT NULL primary key identity(1,1), 
    [JournalEntryCode]   CHAR (1)      NOT NULL,
    [Amount]                MONEY         NOT NULL,
	[CreateDate]	smalldatetime not null default getdate(),
	[TransactionID] int null,
	[OwnerID]	int not null
)
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines an transfer of funds between accounts.', @level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblJournal';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'primary key.  Uniquely identifies each Journal entry.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblJournal',
	@level2type = N'COLUMN', @level2name = N'JournalID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Links to codeJournalEntry.  Defines the type of the journal entry.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblJournal',
	@level2type = N'COLUMN', @level2name = N'JournalEntryCode';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The dollar amount of the entry.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblJournal',
	@level2type = N'COLUMN', @level2name = N'Amount';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The date that this entry was created.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblJournal',
	@level2type = N'COLUMN', @level2name = N'CreateDate';
GO;
